
var config = require(__MAIN__ + '/config.ts')

module.exports = require('angular')
    .module('services.server', [])
    .factory('server', ($http) => {
        return {
            getServerList: function () {
                return $http.jsonp(config.urlGetServerList + '?callback=JSON_CALLBACK&gameId=' + config.gameId)
            }
        }
    })

